home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / biz / patch / pgs32b72.lha / 3.2Beta7 / Install-Beta7 < prev    next >
Encoding:
Text File  |  1996-09-23  |  14.5 KB  |  331 lines

  1. ;PAGESTREAM 3.2 BETA 7 ONLINE UPDATE PATCH INSTALLATION SCRIPT
  2. ;COPYRIGHT ©1996 SOFTLOGIK PUBLISHING CORPORATION
  3.  
  4. ;WARN WEENIES TO GET LOST
  5. (message "\n\nThis is a pre-release beta version of PageStream 3.2. Stop now if you haven't read the Read.1st! file. Clicking Proceed indicates that you are knowingly installing beta software on your system.")
  6.  
  7. ;QUIT PROGRAMS
  8. (message "\n\nIf PageStream, BME or PageLiner are running now, quit them before continuing.")
  9. (run "avail flush" (safe))
  10.  
  11. ;USE ASSIGNS TO AVOID THE STUPID INSTALLER'S CRASH BUG
  12. (run "CD PageStream3:" (safe))
  13. (run "CD SoftLogik:" (safe))
  14. (run "assign fonts: softlogik:fonts add" (safe))
  15.  
  16. ;CONFIRM CORRECT VERSION IS INSTALLED, SET DESTINATION
  17. (message ("\n\nThis patch will update your PageStream 3.1 beta 5 hard drive installation to 3.2 public beta 7.\n\nYour original PageStream3 disks will not be modified by this update.\n\nYou MUST have 3.1 beta 5 installed to use this patch.\n\nYou MUST have a battery-backed clock in your computer to use this version."))
  18. (if (<> (exists "PageStream3:PageStream3") 1)
  19.     (abort "PageStream3 is not in the PageStream3: directory. You must properly install PageStream3.1 beta 5 before applying this update patch.")
  20. )
  21. ;get destination
  22. (set PGSdest (getassign "PageStream3" "a"))
  23. (set SLdest (getassign "SoftLogik" "a"))
  24. (if (OR (= PGSdest "") (= SLdest ""))
  25.     (abort "PageStream3: and/or SoftLogik: are not assigned. You must properly install PageStream 3.1 beta 5 before applying this update patch.")
  26. )
  27. (set PGSsize (getsize "PageStream3:PageStream3"))
  28. (if (<> PGSsize 1411964)
  29.     (abort "You have the wrong version of PageStream installed. Please read the Read.1st! file for instructions.")
  30. )
  31. (set @default-dest PGSdest)
  32.  
  33. ;MAKE REQUIRED DIRECTORIES IF THEY DON'T EXIST
  34. (if (<> (exists "SoftLogik:Engines") 2) (makedir "SoftLogik:Engines" (infos)))
  35. (if (<> (exists "SoftLogik:Libs") 2) (makedir "SoftLogik:Libs" (infos)))
  36. (if (<> (exists "SoftLogik:Printers") 2) (makedir "SoftLogik:Printers" (infos)))
  37. (if (<> (exists "SoftLogik:Filters") 2) (makedir "SoftLogik:Filters" (infos)))
  38. (if (<> (exists "SoftLogik:Effects") 2) (makedir "SoftLogik:Effects" (infos)))
  39. (if (<> (exists "PageStream3:Help") 2) (makedir "PageStream3:Help" (infos)))
  40. (if (<> (exists "PageStream3:Scripts") 2) (makedir "PageStream3:Scripts" (infos)))
  41. (if (<> (exists "PageStream3:Scripts/TextClips") 2) (makedir "PageStream3:Scripts/TextClips" (infos)))
  42. (if (<> (exists "PageStream3:Documents") 2) (makedir "PageStream3:Documents" (infos)))
  43. (if (= (exists "PageStream3:PageStream3.rsrc") 1) (delete "PageStream3:PageStream3.rsrc" (safe)))
  44.  
  45.  
  46. ;COPY THE LHEX PROGRAM TO RAM:
  47. (copyfiles (source "PageStream3Disk1:lhex") (dest "ram:") (nogauge))
  48.  
  49. ;UPDATE FILTERS AND EFFECTS
  50. (working "Installing Updated Filters...")
  51. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x Filters.lha")
  52. (delete "Filters.LHA" (safe))
  53. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Effects x Effects.lha")
  54. (delete "Effects.LHA" (safe))
  55.  
  56. ;UPDATE LIBS
  57. (working "Installing Updated Libraries...")
  58. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Libs x Libs.lha")
  59. (delete "Libs.LHA" (safe))
  60.  
  61. ;UPDATE ENGINES
  62. (working "Installing Updated Engines...")
  63. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Engines x Engines.lha")
  64. (delete "Engines.LHA" (safe))
  65.  
  66. ;UPDATE PRINTERS
  67. (working "Installing Updated Printer Drivers...")
  68. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x Printers.lha")
  69. (delete "Printers.LHA" (safe))
  70.  
  71. ;UPDATE SCRIPTS
  72. (working "Installing Updated Scripts...")
  73. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3:Scripts x Scripts.lha")
  74. (delete "Scripts.LHA" (safe))
  75.  
  76. ;UPDATE BME
  77. (if (exists "PageStream3:BME")
  78.     (
  79.         (working "Patching BME to 3.1a Beta 13...")
  80.         (run "ram:lhex >NIL: <NIL: -qfw=ram: x BMEpatch.LHA")
  81.         (delete "BMEpatch.LHA" (safe))
  82.         (run "spatch >NIL: <NIL: -oPageStream3:BMEnew -pram:BME.pch PageStream3:BME")
  83.         (if (exists "PageStream3:BMEnew")
  84.             (
  85.                 (delete "PageStream3:BME")
  86.                 (rename "PageStream3:BMEnew" "PageStream3:BME")
  87.             )
  88.             (message "\nThe patch to BME was not successful. Refer to the Read.1st! file for further instructions.")
  89.         )
  90.         (delete "ram:BME.pch" (safe))
  91.     )
  92. )
  93.  
  94. ;UPDATE PAGESTREAM3
  95. (working "Patching PageStream to 3.2 Beta 7...\n\nThis will take a while...")
  96. (run "ram:lhex >NIL: <NIL: -qfw=ram: x PGSpatch.LHA")
  97. (delete "PGSpatch.LHA" (safe))
  98. (run "spatch >NIL: <NIL: -oPageStream3:PageStreamNew -pram:PageStream.pch PageStream3:PageStream3")
  99. (if (exists "PageStream3:PageStreamNew")
  100.         (
  101.                 (delete "PageStream3:PageStream3")
  102.                 (rename "PageStream3:PageStreamNew" "PageStream3:PageStream3")
  103.         )
  104.         (abort "The patch to PageStream3 was not successful. Refer to the Read.1st! file for instructions.")
  105. )
  106. (delete "ram:PageStream.pch" (safe))
  107.  
  108. ;PATCH EXTRAS TO LATEST VERSION IF APPLICABLE
  109.  
  110. (run "ram:lhex >NIL: <NIL: -qfw=ram: x Patch.LHA")
  111. (delete "Patch.LHA" (safe))
  112.  
  113. ; PATCH TTF.KEY TO LATEST VERSION
  114. (if (= (exists "SoftLogik:Special/Keys/TTF.key") 1)
  115.     (
  116.         (run "spatch -oram:TTF.font -pram:TTF.pch SoftLogik:Special/Keys/TTF.key")
  117.         (if (= 37284 (getsize "ram:TTF.font"))
  118.             (copyfiles (source "ram:TTF.font") (dest "SoftLogik:Engines"))
  119.             (message "\n\nYour TrueType font engine could not be patched to the latest version.\n\nPlease email support@softlogik.com for assistance. Report problem TTKEY2NEW.")
  120.         )
  121.         (delete "ram:TTF.font" (safe))
  122.     )
  123. )
  124. (delete "ram:TTF.pch" (safe))
  125.  
  126. ; PATCH WWDOC.KEY TO LATEST VERSION
  127. (if (= (exists "SoftLogik:Special/Keys/WWdoc.key") 1)
  128.     (
  129.         (run "spatch -oram:Wordworth.dfilter -pram:WW.pch SoftLogik:Special/Keys/WWdoc.key")
  130.         (if (= 35400 (getsize "ram:Wordworth.dfilter"))
  131.             (copyfiles (source "ram:Wordworth.dfilter") (dest "SoftLogik:Filters"))
  132.             (message "\n\nYour Wordworth document filter could not be patched to the latest version.\n\nPlease email support@softlogik.com for assistance. Report problem WWKEY2NEW.")
  133.         )
  134.         (delete "ram:Wordworth.dfilter" (safe))
  135.     )
  136. )
  137. (delete "ram:WW.pch" (safe))
  138.  
  139. ; PATCH TEXTFX1.KEY TO LATEST VERSION
  140. (if (= (exists "SoftLogik:Special/Keys/TextFX1.key") 1)
  141.     (
  142.         (run "spatch -oram:TextFX.extension -pram:TextFX1.pch SoftLogik:Special/Keys/TextFX1.key")
  143.         (if (= 39508 (getsize "ram:TextFX.extension"))
  144.             (copyfiles (source "ram:TextFX.extension") (dest "SoftLogik:Engines"))
  145.             (message "\n\nYour TextFX1 extension could not be patched to the latest version.\n\nPlease email support@softlogik.com for assistance. Report problem FX1KEY2NEW.")
  146.         )
  147.         (delete "ram:TextFX.extension" (safe))
  148.     )
  149. )
  150. (delete "ram:TextFX1.pch" (safe))
  151.  
  152. ; PATCH TEXTFX2.KEY TO LATEST VERSION
  153. (if (= (exists "SoftLogik:Special/Keys/TextFX2.key") 1)
  154.     (
  155.         (run "spatch -oram:TextFX.extension -pram:TextFX2.pch SoftLogik:Special/Keys/TextFX2.key")
  156.         (if (= 46768 (getsize "ram:TextFX.extension"))
  157.             (copyfiles (source "ram:TextFX.extension") (dest "SoftLogik:Engines"))
  158.             (message "\n\nYour TextFX1 extension could not be patched to the latest version.\n\nPlease email support@softlogik.com for assistance. Report problem FX1KEY2NEW.")
  159.         )
  160.         (delete "ram:TextFX.extension" (safe))
  161.     )
  162. )
  163. (delete "ram:TextFX2 .pch" (safe))
  164.  
  165. ; PATCH JPEG.KEY TO LATEST VERSION
  166. (if (= (exists "SoftLogik:Special/Keys/JPEG.key") 1)
  167.     (
  168.         (run "spatch -oram:JPEG.gfilter -pram:JPEG.pch SoftLogik:Special/Keys/JPEG.key")
  169.         (if (= 95332 (getsize "ram:JPEG.gfilter"))
  170.             (copyfiles (source "ram:JPEG.gfilter") (dest "SoftLogik:Filters"))
  171.             (message "\n\nYour JPEG filter could not be patched to the latest version.\n\nPlease email support@softlogik.com for assistance. Report problem JPKEY2NEW.")
  172.         )
  173.         (delete "ram:JPEG.gfilter" (safe))
  174.     )
  175. )
  176. (delete "ram:JPEG.pch" (safe))
  177.  
  178. ; PATCH GARY.KEY TO LATEST VERSION
  179. (if (= (exists "SoftLogik:Special/Keys/Gary.key") 1)
  180.     (
  181.         (run "spatch -oram:Average.effect -pram:avg.pch SoftLogik:Special/Keys/Gary.key")
  182.         (if (= 5740 (getsize "ram:Average.effect"))
  183.             (copyfiles (source "ram:Average.effect") (dest "SoftLogik:Effects"))
  184.             (message "\n\nYour Average effect could not be patched to the latest version.\n\nPlease email support@softlogik.com for assistance. Report problem GEKEY2NEWCV.")
  185.         )
  186.         (run "spatch -oram:Median.effect -pram:med.pch SoftLogik:Special/Keys/Gary.key")
  187.         (if (= 6264 (getsize "ram:Median.effect"))
  188.             (copyfiles (source "ram:Median.effect") (dest "SoftLogik:Effects"))
  189.             (message "\n\nYour Median effect could not be patched to the latest version.\n\nPlease email support@softlogik.com for assistance. Report problem GEKEY2NEWCV.")
  190.         )
  191.         (run "spatch -oram:Maximum.effect -pram:max.pch SoftLogik:Special/Keys/Gary.key")
  192.         (if (= 6268 (getsize "ram:Maximum.effect"))
  193.             (copyfiles (source "ram:Maximum.effect") (dest "SoftLogik:Effects"))
  194.             (message "\n\nYour Maximum effect could not be patched to the latest version.\n\nPlease email support@softlogik.com for assistance. Report problem GEKEY2NEWCV.")
  195.         )
  196.         (run "spatch -oram:Minimum.effect -pram:min.pch SoftLogik:Special/Keys/Gary.key")
  197.         (if (= 6256 (getsize "ram:Minimum.effect"))
  198.             (copyfiles (source "ram:Minimum.effect") (dest "SoftLogik:Effects"))
  199.             (message "\n\nYour Minimum effect could not be patched to the latest version.\n\nPlease email support@softlogik.com for assistance. Report problem GEKEY2NEWCV.")
  200.         )
  201.         (run "spatch -oram:Solarize.effect -pram:sol.pch SoftLogik:Special/Keys/Gary.key")
  202.         (if (= 4640 (getsize "ram:Solarize.effect"))
  203.             (copyfiles (source "ram:Solarize.effect") (dest "SoftLogik:Effects"))
  204.             (message "\n\nYour Solarize effect could not be patched to the latest version.\n\nPlease email support@softlogik.com for assistance. Report problem GEKEY2NEWCV.")
  205.         )
  206.         (run "spatch -oram:Threshold.effect -pram:thr.pch SoftLogik:Special/Keys/Gary.key")
  207.         (if (= 5044 (getsize "ram:Threshold.effect"))
  208.             (copyfiles (source "ram:Threshold.effect") (dest "SoftLogik:Effects"))
  209.             (message "\n\nYour Threshold effect could not be patched to the latest version.\n\nPlease email support@softlogik.com for assistance. Report problem GEKEY2NEWCV.")
  210.         )
  211.         (run "spatch -oram:HSB.effect -pram:HSB.pch SoftLogik:Special/Keys/Gary.key")
  212.         (if (= 6464 (getsize "ram:HSB.effect"))
  213.             (copyfiles (source "ram:HSB.effect") (dest "SoftLogik:Effects"))
  214.             (message "\n\nYour HSB effect could not be patched to the latest version.\n\nPlease email support@softlogik.com for assistance. Report problem GEKEY2NEWHB.")
  215.         )
  216.         (run "spatch -oram:Gamma.effect -pram:gam.pch SoftLogik:Special/Keys/Gary.key")
  217.         (if (= 14372 (getsize "ram:Gamma.effect"))
  218.             (copyfiles (source "ram:Gamma.effect") (dest "SoftLogik:Effects"))
  219.             (message "\n\nYour Gamma effect could not be patched to the latest version.\n\nPlease email support@softlogik.com for assistance. Report problem GEKEY2NEWHB.")
  220.         )
  221.         (run "spatch -oram:Convolve.effect -pram:conv.pch SoftLogik:Special/Keys/Gary.key")
  222.         (if (= 11240 (getsize "ram:Convolve.effect"))
  223.             (copyfiles (source "ram:Convolve.effect") (dest "SoftLogik:Effects"))
  224.             (message "\n\nYour Convolve effect could not be patched to the latest version.\n\nPlease email support@softlogik.com for assistance. Report problem GEKEY2NEWCV.")
  225.         )
  226.         (run "spatch -oram:Histogram.effect -pram:hist.pch SoftLogik:Special/Keys/Gary.key")
  227.         (if (= 5688 (getsize "ram:Histogram.effect"))
  228.             (copyfiles (source "ram:Histogram.effect") (dest "SoftLogik:Effects"))
  229.             (message "\n\nYour Histogram effect could not be patched to the latest version.\n\nPlease email support@softlogik.com for assistance. Report problem GEKEY2NEWHT.")
  230.         )
  231.     )
  232. )
  233. (delete "ram:Convolve.effect" (safe))
  234. (delete "ram:Histogram.effect" (safe))
  235. (delete "ram:HSB.effect" (safe))
  236. (delete "ram:average.effect" (safe))
  237. (delete "ram:median.effect" (safe))
  238. (delete "ram:maximum.effect" (safe))
  239. (delete "ram:minimum.effect" (safe))
  240. (delete "ram:solarize.effect" (safe))
  241. (delete "ram:threshold.effect" (safe))
  242. (delete "ram:gamma.effect" (safe))
  243. (delete "ram:Conv.pch" (safe))
  244. (delete "ram:Hist.pch" (safe))
  245. (delete "ram:HSB.pch" (safe))
  246. (delete "ram:avg.pch" (safe))
  247. (delete "ram:med.pch" (safe))
  248. (delete "ram:max.pch" (safe))
  249. (delete "ram:min.pch" (safe))
  250. (delete "ram:sol.pch" (safe))
  251. (delete "ram:thr.pch" (safe))
  252. (delete "ram:gam.pch" (safe))
  253.  
  254.  
  255. (message "\n\nPlease take the time to read the ReadMe.Now file before using this version. Many of the included scripts will not work in this beta due to a change in script commands. They will be updated for the final version. Sorry for the inconvenience.")
  256.  
  257. ;DISPLAY README (Try 3 different ways!)
  258. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3: x Read.LHA")
  259. (delete "Read.LHA" (safe))
  260. (IF (> (run "Sys:Utilities/MultiView PageStream3:ReadMe.Now") 0)
  261.         (IF (> (run "Sys:Utilities/AmigaGuide PageStream3:ReadMe.Now") 0)
  262.                 (run "More PageStream3:ReadMe.Now")
  263.         )
  264. )
  265.  
  266. ;REMOVE THE LHEX PROGRAM
  267. (delete "ram:lhex" (safe))
  268. (delete "spatch" (safe))
  269. (delete "Install-Beta7.info" (safe))
  270.  
  271. (message "\n\nYou MUST update your font paths after starting this beta for the first time. Choose Fonts from the System Preferences submenu in the Project menu. Select each font path in the requester and click Update. When you are done, click Save.")
  272.  
  273. ;DONE
  274. (exit "Finished Installation")
  275.  
  276.  
  277. ;VERSION NUMBERS
  278. ;3.0h
  279. ;ttf.font                   36704 1.0
  280. ;wordworth.dfilter          33256 1.0
  281.  
  282. ;3.0h2
  283. ;wordworth.dfilter          34760 1.0a
  284. ;jpeg.gfilter               81768 1.0
  285. ;textfx.extension           27368 1.0
  286. ;convolve.effect            10804 1.0
  287. ;histogram.effect            5152 1.0
  288.  
  289. ;3.0i
  290. ;TTF.font                   37176 1.1
  291. ;wordworth.dfilter          34732 1.0b
  292. ;jpeg.gfilter               81916 1.0a
  293. ;textfx.extension           32456 1.0a American
  294. ;textfx_d.extension         32468 1.0a Deutch
  295. ;convolve.effect            11108 1.0a
  296. ;histogram.effect            5444 1.0a
  297. ;hsb.effect                  6020 1.0
  298.  
  299. ;3.1b5 (3.1pr)
  300. ;ttf_db.font               121480 1.2 debug
  301. ;ttf.font                   37284 1.2
  302. ;wordworth.dfilter          35252 1.0c beta 3
  303. ;JPEG_d.gfilter             95272 1.0b Deutch
  304. ;jpeg_e.gfilter             95272 1.0b American Old
  305. ;JPEG.gfilter               95360 1.0b American New
  306. ;textfx.extension           32880 1.0b beta 3
  307. ;textfx.extension           47144 2.0
  308. ;convolve.effect            11268 1.0b
  309. ;histogram.effect            5624 1.0b
  310. ;hsb.effect                  6432 1.0a
  311.  
  312. ;3.2b6
  313. ;wordworth.dfilter          35400 1.0c beta 6
  314. ;JPEG.gfilter               95332 1.0c beta 2
  315. ;textfx.extension           39508 1.0c
  316. ;textfx.extension           39552 2.0a
  317. ;average.effect              5740 1.0a beta 2
  318. ;median.effect               6264 1.0a beta 2
  319. ;maximum.effect              6268 1.0a beta 2
  320. ;minimum.effect              6256 1.0a beta 2
  321. ;solarize.effect             4640 1.0a beta 2
  322. ;threshold.effect            5044 1.0a beta 2
  323. ;hsb.effect                  6464 1.0b beta 2
  324. ;gamma.effect               14372 1.0a beta 2
  325. ;histogram.effect            5688 1.0c beta 2
  326. ;convolve.effect            11240 1.0c beta 2
  327.  
  328. ;3.2b7
  329. ;textfx.extension           46768 2.0b
  330.  
  331.